! function() {

	var lazyImage = function() {
		var img_arr = [],
			img_nodes = document.getElementsByTagName('img');

		for(var i = 0; i < img_nodes.length; i++) {
			if(img_nodes[i].attributes['data-src']) {
				img_arr.push(img_nodes[i]);
			}
		}
		img_nodes = null;

		loadImg(img_arr);
	}

	function loadImg(img_arr) {
		if(img_arr.length <= 0) return;
		var _node = img_arr[0],
			src = _node.getAttribute('data-src'),
			img = new Image();
		img.onload = function() {
			_node.src = src;
			img_arr.shift();
			loadImg(img_arr);
		}
		img.src = src;
	}

	if(typeof thin != 'undefined' && thin.define) {
		thin.define(function(e) {
			e("lazyImage", lazyImage);
		});
	}

}();